SET EFFECT ON
This command will load and apply an FX file to an object. If the object does not exist onto which an effect is set, a default model is created either specified by the FX file or if none is specified, an internal pyramid model. The FX filename must point to an FX file that is compatible with the DX9 effect framework and typically uses the extension '.fx'. If the Texture Flag is set to zero, the effect will use the textures already mapped to the model, and a value of one will discard the current textures and load the textures specified in the FX file. Typically, effects rely on the specified model and textures in the FX file to function properly.

SYNTAX
SET EFFECT ON Object Number, FX Filename, Texture Flag

RELATED INFO
BASIC3D Commands Menu
Index

EXAMPLE
View Showcase Example
View Usage Example